package com.example.demo;

import com.example.demo.src.PromotionStrategy;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class StrategyPatternApplication {

    public static void main(String[] args) {
        PromotionStrategyFactory.getPromotionKeys();
        String promotionKey = "COUPON";
        PromotionStrategy promotionActivity = PromotionStrategyFactory.getPromotionStrategyFactory(promotionKey);
        promotionActivity.doPromotion();

    }

}
